package com.ydh.company.pojo;


import com.ydh.company.flag.PurchaseOrderFlag;
import com.ydh.company.pojo.Goods;
import com.ydh.company.pojo.Supplier;
import com.ydh.company.pojo.User;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

public class PurchaseReturnGoodsDetail {
  @ApiModelProperty(name = "purchaseOrderDetailId",notes = "采购退货详情表id",dataType = "string",required = false)
  private String purchaseOrderDetailId;
  @NotBlank(message = "采购退货单号不能为空")
  @ApiModelProperty(name = "purchaseReturnNo",notes = "采购退货单号 ",dataType = "string",required = true)
  private String purchaseReturnNo;
  @NotBlank(message = "商品id不能为空")
  @ApiModelProperty(name = "goodsId",notes = "商品id",dataType = "string",required = true)
  private String goodsId;
  @NotBlank(message = "退货数不能为空")
  @Pattern(regexp = "[1-9]\\d*",message = "退货数只能输入正整数")
  @ApiModelProperty(name = "returnGoodsNumber",notes = "退货数",dataType = "long",required = true)
  private long returnGoodsNumber;
  @ApiModelProperty(name = "purchaseReturnGoodsMainId",notes = "退货订单主表id",dataType = "string",required = false)
  private String purchaseReturnGoodsMainId;
  private Goods goods;

  public String getPurchaseReturnGoodsMainId() {
    return purchaseReturnGoodsMainId;
  }

  public void setPurchaseReturnGoodsMainId(String purchaseReturnGoodsMainId) {
    this.purchaseReturnGoodsMainId = purchaseReturnGoodsMainId;
  }

  @NotBlank(message = "退货单价不能为空")
  @Pattern(regexp = "[1-9]\\d*.\\d*|0\\.\\d*[1-9]\\d*",message = "只能传正浮点数")
  @ApiModelProperty(name = "purchaseReturnPrice",notes = "退货单价",dataType = "string",required = true)
  private Double purchaseReturnPrice;

  public Double getPurchaseReturnPrice() {
    return purchaseReturnPrice;
  }

  public void setPurchaseReturnPrice(Double purchaseReturnPrice) {
    this.purchaseReturnPrice = purchaseReturnPrice;
  }

  public Goods getGoods() {
    return goods;
  }

  public void setGoods(Goods goods) {
    this.goods = goods;
  }

  public String getPurchaseOrderDetailId() {
    return purchaseOrderDetailId;
  }

  public void setPurchaseOrderDetailId(String purchaseOrderDetailId) {
    this.purchaseOrderDetailId = purchaseOrderDetailId;
  }

  public String getPurchaseReturnNo() {
    return purchaseReturnNo;
  }

  public void setPurchaseReturnNo(String purchaseReturnNo) {
    this.purchaseReturnNo = purchaseReturnNo;
  }

  public String getGoodsId() {
    return goodsId;
  }

  public void setGoodsId(String goodsId) {
    this.goodsId = goodsId;
  }

  public long getReturnGoodsNumber() {
    return returnGoodsNumber;
  }

  public void setReturnGoodsNumber(long returnGoodsNumber) {
    this.returnGoodsNumber = returnGoodsNumber;
  }


}
